﻿namespace AnyOffice.Model
{
    using System;

    public class BbsBoardData
    {
        protected int _boardId = -1;
        protected string _boardName = string.Empty;
        protected int _boardNo;
        protected object _deptId;
        protected bool _isAnonymous;
        protected object _owner;
        protected object _welcomeText;

        public int BoardId
        {
            get
            {
                return this._boardId;
            }
            set
            {
                this._boardId = value;
            }
        }

        public string BoardName
        {
            get
            {
                return this._boardName;
            }
            set
            {
                this._boardName = value;
            }
        }

        public int BoardNo
        {
            get
            {
                return this._boardNo;
            }
            set
            {
                this._boardNo = value;
            }
        }

        public string DeptId
        {
            get
            {
                return (string) this._deptId;
            }
            set
            {
                this._deptId = value;
            }
        }

        public bool DeptIdIsNull
        {
            get
            {
                return (this._deptId == null);
            }
            set
            {
                if (value)
                {
                    this._deptId = null;
                }
            }
        }

        public bool IsAnonymous
        {
            get
            {
                return this._isAnonymous;
            }
            set
            {
                this._isAnonymous = value;
            }
        }

        public string Owner
        {
            get
            {
                return (string) this._owner;
            }
            set
            {
                this._owner = value;
            }
        }

        public bool OwnerIsNull
        {
            get
            {
                return (this._owner == null);
            }
            set
            {
                if (value)
                {
                    this._owner = null;
                }
            }
        }

        public string WelcomeText
        {
            get
            {
                return (string) this._welcomeText;
            }
            set
            {
                this._welcomeText = value;
            }
        }

        public bool WelcomeTextIsNull
        {
            get
            {
                return (this._welcomeText == null);
            }
            set
            {
                if (value)
                {
                    this._welcomeText = null;
                }
            }
        }
    }
}

